dynamicInputAs

fun <TInput> dynamicInputAs(part: UIMessagePart.DynamicToolUI, serializer: KSerializer<TInput>): TInput?